home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / lazer.arc / LAZER.DOC < prev    next >
Encoding:
Text File  |  1987-10-22  |  6.5 KB  |  232 lines

  1. *********************************************************************
  2. *  LAZER - Poor Man's Typesetter for HP LaserJet++ and Compatibles  *
  3. *                                                                   *
  4. *               (c) 1987 James Bumgardner                           *
  5. *********************************************************************
  6.  
  7. *********************************************************************
  8.  
  9. You are hereby granted permission to use this program for
  10. non-commericial pursuits.  If you are using this program in a
  11. commercial setting (or are in a generous mood), Please send one
  12. of the following items to the author. 
  13.  
  14.     A. An unusual postcard.
  15.     B. A small trinket or toy.
  16.     C. A job application or contact
  17.     D. Plane Tickets
  18.     E. An 80386 Machine, Mac II, or other high-end micro
  19.  
  20.     James Bumgardner
  21.     4741 Clybourn Ave #1
  22.     North Hollywood, CA 91602
  23.     (818)766-0594 (PLINK BUM)
  24.  
  25. *******************************************************************
  26. This Archive Contains:
  27.  
  28.     LAZER.EXE        The Type
  29.     LAZER.DOC        What It Is
  30.     OKI.TXT            Sample Header file for OKI LaserLine
  31.     FORM.TXT        Sample Form
  32.  
  33. This program processes ascii text files which contain special commands
  34. in Brackets [].
  35.  
  36. Many, but not all, HP+ commands are supported.  Some commands directly
  37. translate into a corresponding HP command.  Other commands are more
  38. sophisticated, and actually do some useful things the printer can't
  39. do.  LAZER can perform these functions:
  40.  
  41.     - Download soft fonts
  42.  
  43.     - Read text from an "include" file (Nesting up to 16 levels).
  44.  
  45.       ** The file OKI.TXT is a special include file to assign font-ids
  46.       to the resident fonts on an OKI Laserline.  You may want to use
  47.       this as a model for setting up your printer.
  48.  
  49.     - Read data from a bitmap.  The bitmap file is in a very simple,
  50.       but nonstandard, format, two words indicating the dimensions of the
  51.           bitmap, and then the bitmap data.  Future versions of LAZER will
  52.       read other formats.
  53.  
  54.     - Make Lazer Output Files more understandable by allowing you to
  55.       insert comments.
  56.  
  57. If you won't find this program of any use, don't erase it just yet.  The
  58. OKIPIE program (available at the same place you got this) needs this program
  59. to typeset hi-res pie graphs.  Other forthcoming graphics programs will
  60. use it as well.
  61.  
  62. Usage
  63. -----
  64.     LAZER form.txt        (This outputs to LPT1)
  65.  
  66.     LAZER form.txt LPT2
  67.         or
  68.     LAZER form.txt 2    (This outputs to LPT2)
  69.  
  70.     LAZER form.txt outfile    (This outputs to a file)
  71.  
  72. Command Glossary
  73. ----------------
  74. Lazer files combine text and typesetting commands.
  75.  
  76. All Typesetting Commands are surrounded with []
  77. To actually print a left square bracket, use [[.
  78.  
  79. You can chain multiple commands in the same set of brackets, and put
  80. white space (spaces,tabs,returns) between commands.  Like so:
  81.  
  82. [        ; this is a comment
  83. L1200,2300    ; Locate Cursor
  84. F0        ; Font Zero
  85. ]
  86.  
  87. All filenames are surrounded with <>
  88.  
  89. [
  90. L1200,1200        ; Locate Cursor
  91. IB150<piechart.map>    ; Read Bitmap at 150 resolution
  92. ]
  93.  
  94. Basic Commands
  95. --------------
  96. [E]    Escape
  97.     This sends an escape to your printer, allowing you to use
  98.     escape codes LAZER doesn't support.
  99.  
  100. [^x]    Control Characters
  101.     Same Idea.
  102.  
  103. [F#]    Select Font
  104. [F#<file>] Download Font
  105.     
  106.     Examples:
  107.          [F0]            (select font # 0)
  108.          [F2<OPT10.SFP>]    (download opt10.sfp as font # 2).
  109.  
  110.     Font Filenames default to .SFP
  111.  
  112. [A#]    Assign Font-ID
  113.     Assigns a Font-ID to the last descibed Font - useful for assigning
  114.     IDs to resident and cartridge fonts.
  115.  
  116. [H#]    Select Pitch        Specify characters per inch.
  117.  
  118. [V#]    Select Point Size    Specify points (1/72")
  119.  
  120. [(xx]    Select Symbol Set     (e.g. [(OU] )
  121.         
  122. [T#]    Type Face        (0-10)
  123.  
  124. [P#]    Spacing: 0 - fixed, 1 - proportional, -1 Compressed Prop
  125.  
  126. [O#]    Orientation: Landscape [O1]    Portrait [O0]
  127.  
  128.     You not combine landscape and portrait on the same page.
  129.     These commands remain in effect until turned off - be sure to
  130.     reset at the next page, if desired.
  131.  
  132. [D#]    Lines Per Inch        Specify lines per inch
  133.  
  134.  
  135. [!]    Bold Toggle        Example: He was a [!]bad[!] boy.
  136. [/]    Italic Toggle
  137. [_]    Underline Toggle
  138.  
  139. [M?#]    Set Margin
  140.  
  141.     l    left margin in columns
  142.     r    right margin in columns
  143.     t    top margin in lines
  144.  
  145. [Mc]    Clear Margins
  146.  
  147.  
  148. [f]    FormFeed
  149.  
  150.  
  151. Graphics
  152. --------
  153. [L#,#]    Locate X,Y
  154. [L,#]    Locate Y
  155. [L#]    Locate X
  156.  
  157.     Locate cursor at XX-YY coordinates (1/720" increments)
  158.     X and Y values may be offsets (use + and - signs).
  159.  
  160. [LS]        Push Cursor
  161. [LP]        Pop Cursor
  162.     You may save and restore the cursor position mutliple times on
  163.     a Last in First out basis.
  164.  
  165. [G#]    Set Grey Scale    
  166.     This command sets a grey scale for drawing lines and boxes.
  167.     The grey scale value is independent from the pattern value.
  168.     Specify 1-100.
  169.  
  170. [p#]    Set Pattern
  171.     This command sets up a pattern for drawing lines and boxes. 
  172.     1    Horizontal Lines
  173.     2     Vertical Lines
  174.     3    Diagonal to upper right.
  175.     4    Diagonal to lower right
  176.     5    1+2    Criss Cross
  177.     6    3+4    Criss Cross
  178.  
  179. [R?##,##] Print Rule (Lines and Boxes)
  180.     s or b    Solid
  181.     g    Grey Scale
  182.     p    Pattern
  183.     ##,##    Height and Width in 1/720" increments
  184.  
  185. Control and Macros
  186. ------------------
  187.  
  188. [N+]    Ignore Returns
  189.     Causes CR-LFs outside of brackets to be ignored.  This is useful
  190.     for making complex forms more readable.
  191.  
  192. [N-]    Don't Ignore Returns
  193.  
  194.  
  195. [I<file>]   Include File
  196.  
  197.     Starts reading commands from the specified file.  Good for standard
  198.     letter heads, etc.  Often, include files will contain a series
  199.     of macros (see below).  After the file is read, control is transfered
  200.     back to the original file.  You may nest includes up to 16 levels.
  201.  
  202.     Include filenames default to .TXT
  203.  
  204. [*{#]    Start Macro
  205. [*}]    End Macro
  206.     
  207.     These two commands define a "Macro", a set of commands which are
  208.     identified by number, and then can be executed over and over again.
  209.     Between these two commands, place all the instructions or text you want
  210.     the macro to perform.  Macros are stored by the printer, and will
  211.     execute    faster then sending the same text over again.
  212.  
  213. [*#]    Execute Macro
  214.  
  215.     This command executes the macro defined in a macro definition above.
  216.  
  217.  
  218. Raster Graphics
  219. ---------------
  220. [IB<file>]    Read Bitmap at default resolution
  221. [IB#<file>]    Read Bitmap at particular resolution
  222.  
  223.     A bitmap is a file with a picture in it.  The first 4 bytes contain
  224.     the bitmap's dimensions (Horizontal , Vertical).  The rest of the
  225.     file is the bitmap.  The bitmap is read in at the current cursor
  226.     position.
  227.     You may optionally specify a resolution (300, 150 or 75 dpi).
  228.     300, or the last reso used, is the default.
  229.     Bitmap Filenames default to .MAP
  230.  
  231. ** END OF DOCS **
  232.